﻿@model Senac.Escola.Projeto.Models.Usuario

@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_LayoutLogin.cshtml";
}

<div>
    <img src="@Url.Content("~/Content/themes/base/images/logo.png")">
</div>

@using (Html.BeginForm("Login", "Usuario", FormMethod.Post, new {id = "FrmLoginUsuario" }))
{
    @Html.ValidationSummary(true)
    <fieldset class="logar">

        <div class="editor-label">
            @Html.LabelFor(model => model.Login)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Login)
            @Html.ValidationMessageFor(model => model.Login)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Senha)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.Senha)
            @Html.ValidationMessageFor(model => model.Senha)
        </div>

        @if (!string.IsNullOrEmpty(ViewBag.MensagemLogin))
{ 
    <div style="color:Red;">
        @Html.Raw(ViewBag.MensagemLogin)
    </div>
}

       <p></p>  
        <p>
            <input class = "btn btn-primary" type="submit" value="Entrar"/>
        </p>
    </fieldset>
}

